##
import matplotlib.pyplot as plt
import numpy as np

plt.rcParams['font.sans-serif'] = ['SimHei']

# Data for plotting
t = np.arange(0.0, 2.0, 0.1)
s = 1 + np.sin(2 * np.pi * t)


fig, ax = plt.subplots()
ax.plot(t, s,marker='*',color='blue')

ax.set(xlabel='time(s)',ylabel='f(x)',title="这张图是xxx")

# ax.set(xlabel='time (s)', ylabel='voltage (mV)',
#        title='About as simple as it gets, folks')
# ax.grid()
#
# fig.savefig("test.png")
plt.show()